package com.ruoyi.scan.api;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.PageQuery;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.core.constant.Url;
import com.ruoyi.mall.domain.Address;
import com.ruoyi.mall.domain.bo.AddressBo;
import com.ruoyi.mall.domain.vo.AddressVo;
import com.ruoyi.mall.service.IAddressService;
import com.ruoyi.scan.service.IApplyService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor(onConstructor_ = @Autowired)
@RequestMapping(Url.check)
public class FrontController extends BaseController {
    private final IAddressService iAddressService;
    /**
     * 地址列表查询
     */
    @GetMapping("listAddress")
    public TableDataInfo<AddressVo> listAddress(AddressBo bo, PageQuery pageQuery){
        return iAddressService.queryPageList(bo,pageQuery);
    }
}
